/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.uk.entity;

import org.hibernate.validator.constraints.Length;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

/**
 * English attendanceEntity
 * @author hui.li
 * @version 2017-03-08
 */
public class AttendanceUk extends DataEntity<AttendanceUk> {
	
	private static final long serialVersionUID = 1L;
	private String warehouse;		// warehouse
	private Date date;		// date
	private String employeeNo;		// employeeNo
	private String name;		// name
	private String cardNo;		// cardNo
	private String equipment;		// equipment
	private String equipmentNo;		// equipmentNo
	private String inputPoint;		// inputPoint
	private String outputPoint;		// outputPoint
	private String verificationMode;		// verificationMode
	private String accessState;		// accessState
	private String eventDescription;		// eventDescription
	private String linkageTriggerCondition;		// linkageTriggerCondition
	private Date beginDate;// 开始时间
	private Date endDate;// 结束时间
	public AttendanceUk() {
		super();
	}

	public AttendanceUk(String id){
		super(id);
	}

	@Length(min=0, max=64, message="warehouse长度必须介于 0 和 64 之间")
	public String getWarehouse() {
		return warehouse;
	}

	public void setWarehouse(String warehouse) {
		this.warehouse = warehouse;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title = "时间", align = 1, sort = 1)
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
	
	@Length(min=0, max=64, message="employeeNo长度必须介于 0 和 64 之间")
	@ExcelField(title = "人员编号", align = 1, sort = 2)
	public String getEmployeeNo() {
		return employeeNo;
	}

	public void setEmployeeNo(String employeeNo) {
		this.employeeNo = employeeNo;
	}
	
	@Length(min=0, max=64, message="name长度必须介于 0 和 64 之间")
	@ExcelField(title = "姓名", align = 1, sort = 3)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="cardNo长度必须介于 0 和 64 之间")
	@ExcelField(title = "卡号", align = 1, sort = 4)
	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}
	
	@Length(min=0, max=64, message="equipment长度必须介于 0 和 64 之间")
	@ExcelField(title = "设备", align = 1, sort = 5)
	public String getEquipment() {
		return equipment;
	}

	public void setEquipment(String equipment) {
		this.equipment = equipment;
	}
	
	@Length(min=0, max=64, message="equipmentNo长度必须介于 0 和 64 之间")
	@ExcelField(title = "门事件点", align = 1, sort = 6)
	public String getEquipmentNo() {
		return equipmentNo;
	}

	public void setEquipmentNo(String equipmentNo) {
		this.equipmentNo = equipmentNo;
	}
	
	@Length(min=0, max=64, message="inputPoint长度必须介于 0 和 64 之间")
	@ExcelField(title = "辅助输入点", align = 1, sort = 7)
	public String getInputPoint() {
		return inputPoint;
	}

	public void setInputPoint(String inputPoint) {
		this.inputPoint = inputPoint;
	}
	
	@Length(min=0, max=64, message="outputPoint长度必须介于 0 和 64 之间")
	@ExcelField(title = "辅助输出点", align = 1, sort = 8)
	public String getOutputPoint() {
		return outputPoint;
	}

	public void setOutputPoint(String outputPoint) {
		this.outputPoint = outputPoint;
	}
	
	@Length(min=0, max=64, message="verificationMode长度必须介于 0 和 64 之间")
	@ExcelField(title = "验证方式", align = 1, sort = 9)
	public String getVerificationMode() {
		return verificationMode;
	}

	public void setVerificationMode(String verificationMode) {
		this.verificationMode = verificationMode;
	}
	
	@Length(min=0, max=64, message="accessState长度必须介于 0 和 64 之间")
	@ExcelField(title = "出入状态", align = 1, sort = 10)
	public String getAccessState() {
		return accessState;
	}

	public void setAccessState(String accessState) {
		this.accessState = accessState;
	}
	
	@Length(min=0, max=64, message="eventDescription长度必须介于 0 和 64 之间")
	@ExcelField(title = "事件描述", align = 1, sort = 11)
	public String getEventDescription() {
		return eventDescription;
	}

	public void setEventDescription(String eventDescription) {
		this.eventDescription = eventDescription;
	}
	
	@Length(min=0, max=255, message="linkageTriggerCondition长度必须介于 0 和 255 之间")
	@ExcelField(title = "联动触发条件", align = 1, sort = 12)
	public String getLinkageTriggerCondition() {
		return linkageTriggerCondition;
	}

	public void setLinkageTriggerCondition(String linkageTriggerCondition) {
		this.linkageTriggerCondition = linkageTriggerCondition;
	}
	
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	
}